d833c767b7693321de5d20febca313a11be1514f,app/src/main/java/io/github/tjg1/nori/NSFWFilterSettingsActivity.java,NSFWFilterSettingsActivity,onCreate,#Bundle#,46
Before Change
// Hide the action bar icon and use the activity title as the home button.
ActionBar actionBar = getSupportActionBar();
actionBar.setDisplayShowHomeEnabled(false);
actionBar.setDisplayShowTitleEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(true);
// Get shared preference object.
sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
After Change
setSupportActionBar(toolbar);
// Hide the action bar icon and use the activity title as the home button.
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
actionBar.setDisplayShowHomeEnabled(false);
actionBar.setDisplayShowTitleEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(true);
}
// Get shared preference object.